import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import store from './store'
import router from './router/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//! 引入mock 下的index.ts
import {mockRequest} from "./mock";
//! axios
// import axios from 'axios'
import http from "./http"
//! 判断开发环境
// console.log(process.env);

if (process.env.NODE_ENV === 'mock') {
    mockRequest()
    console.log(1);

}
const app = createApp(App)
app.use(store).use(router).use(ElementPlus)
app.mount('#app')
app.provide("$http", http)
